using bdddoc.core;
using jpboodhoo.bdd.contexts;
using jpboodhoo.bdd.mbunit.standard.observations;
using resharperupdate.core.services;
using resharperupdate.core.services.impl;

namespace resharperupdate.core.tests.services
{
    public class DownloaderSpecs
    {
        [Concern(typeof(Downloader))]
        public abstract class concerns : observations_for_a_sut_with_a_contract<IDownloader, Downloader>{}

        public class when_downloading_the_latest_nightly_builds_page : concerns
        {
            static string result;
            
            because b = () =>  result = sut.nightly_html();

            it should_find_the_right_page = () => result.Contains("ReSharper 4.5 Nightly Builds");
        }
    }
}